﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace FourKill.Engine
{
    public class TreeObject : BaseGameObject
    {
        public enum TreeTypes
        {
            Simple,
            FourTriangle
        }

        public TreeObject(TreeTypes type)
        {
            this.TreeType = type;
            this.Color = System.Drawing.Color.FromArgb(0, _rand.Next(60, 128), _rand.Next(0, 60));
        }

        public override void Tick() { }

        public TreeTypes TreeType
        {
            get;
            set;
        }

        public override IPaintable Painter
        {
            get
            {
                return TreeType == TreeTypes.Simple ? (IPaintable)Tree.Instance : (IPaintable)AnotherTree.Instance;
            }
        }
    }
}
